package awt;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Frame;
import java.awt.GridLayout;
import java.awt.Panel;
import java.awt.TextArea;

public class AWTPanelExample extends Frame {
	
	public AWTPanelExample() {
		setTitle("MyFrame"); 
		setSize(400, 150); 
		setLayout(new BorderLayout());
		
		add(new TextArea("Example Text"), BorderLayout.CENTER);
		
		Panel panel = new Panel();
		panel.setLayout(new GridLayout(1,3));		
		panel.add(new Button("A"));
		panel.add(new Button("B"));
		panel.add(new Button("C"));
		
		add(panel, BorderLayout.SOUTH);
		
		setVisible(true); 
	}

	public static void main(String args[]) {
		new AWTPanelExample();
	}
}











